package com.xx.service;

import com.github.pagehelper.PageInfo;
import com.xx.entity.Employees;
import com.xx.entity.EmployeesRegister;

public interface EmployeesService {

    //分页
    PageInfo<Employees> selectAllByPage(Employees employees, Integer pageNum);

    //通过主键查询单条数据
    Employees selectByEmployeeId(Integer employeeId);

    //新增
    int insertSelective(Employees employees);

    //修改
    int updateByEmployeeId(Employees updated,Integer employeeId);

    //删除
    int deleteByEmployeeId(Integer employeeId);

    //登录用户名
    Employees selectByLoginName(String loginName, String password);

    //注册
    int registerEmployees(EmployeesRegister employeesRegister);

}
